<h1>Editing user</h1>

<% form_for(@user) do |f| %>
  <%= f.error_messages %>

  <p>
    <label for = "user_name"> Name:</label>
    <%= f.text_field :name %>
  </p>
  <p>
      <label for = "user_password"> New Password:</label>
        <%= f.password_field :password, :size=> 40 %>
  </p>
      <p>
      <label for = "user_password_confirmation"> Confirm:</label>
        <%= f.password_field :password_confirmation, :size=> 40 %>
      </p>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @user %> |
<%= link_to 'Back', users_path %>
